<template>
  <div>
    <Loading v-show="this.$store.state.isLoading" />
    <div class="container">
      <Swipe :banners="banners"></Swipe>
      <List1 :obj="heavyRecommend" :isAudio="true"></List1>
      <List2 :obj="weekHotList" :isAudio="true"></List2>
      <List4 :obj="femailFeature" :isAudio="true"></List4>
    </div>
  </div>
</template>

<script>
import { getStoreData } from "@/request/api";
import Swipe from "@/components/swipe";
import List1 from "@/components/List1";
import List2 from "@/components/List2";
import List4 from "@/components/List4";
export default {
  components: {
    Swipe,
    List1,
    List2,
    List4,
  },
  data() {
    return {
      //广告
      banners: [],
      //重磅推荐
      heavyRecommend: {
        list: [],
        name: "",
      },
      //本周热听
      weekHotList: {
        list: [],
        name: "",
      },
      //女生精选
      femailFeature: {
        list: [],
        name: "",
      },
    };
  },
  mounted() {
    getStoreData({
      type: this.$route.query.type,
      uuid: this.$route.query.uuid,
    }).then((res) => {
      if (res.resCode == 0) {
        let list = res.data.list;
        this.banners = list[0].banners;
        this.heavyRecommend = list[1];
        this.weekHotList = list[2];
        this.femailFeature = list[4];
      }
    });
  },
};
</script>

<style lang="scss" scoped>
</style>
